#!/bin/bash
podName=`kubectl get pod -n common -l app=elasticsearch -o jsonpath='{.items[0].metadata.name}'`
kubectl exec -it $podName -n common -- elasticsearch-setup-passwords interactive
echo '==========init es password success=========='